%table#pool-table
  %thead
    %tr
      %th.thsort{:scope => "col"}
        = t('pools.pool_info.ip')
      %th.thsort{:scope => "col"}
        = t('pools.pool_info.max_memory')
      %th.thsort{:scope => "col"}
        = t('pools.pool_info.reserved_memory')
      %th.thsort{:scope => "col"}
        = t('pools.pool_info.max_disk')
      %th.thsort{:scope =>"col"}
        =t('pools.pool_info.reserved_disk')
      %th.thsort{:scope => "col"}
        = t('pools.pool_info.state')
  %tbody
    - @pools.each do |resource_type,resource_value|
      - resource_value.each do |dea_id, pools_item|
        %tr.oddeven
          %td= pools_item[:local_ip]
          %td= pools_item[:max_memory]
          %td= pools_item[:reserved_memory]
          %td= pools_item[:max_disk]
          %td= pools_item[:reserved_disk]
          %td
            %span{:id => "pools-" + pools_item[:local_ip] + "-tooltip"}= dea_health(pools_item).html_safe
